<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sp" uri="http://www.springframework.org/tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>My JSP 'add.jsp' starting page</title>
<link rel="stylesheet" type="text/css" href="/style/reset.css" />
<link rel="stylesheet" type="text/css" href="/style/admin.css" />
<script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>

</head>

<body class="mainframe">
  <form action="/admin/user/role.dhtml" method="post">
    <input type="hidden" name="user.id" value="${user.id }" /> 用户名：
    <c:out value="${user.loginname }" />
    <hr />
    <sp:message code="${message.info}" text="" /><br />
    <c:forEach var="s" items="${roleList }" varStatus="status">
      <c:out value="${status.index + 1}" />
      <input type="checkbox" name="roleIds" value="<c:out value="${s.id}" />"
        <c:out value="${s.checked }" escapeXml="false" /> />
      <c:out value="${s.name }" />
      <br />
    </c:forEach>
    <input type="submit" class="button01" value="提交" />
  </form>
</body>
</html>
